package com.message.api;

import com.base.model.R;
import com.message.model.Message;
import com.message.service.MessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @Author: 小何
 * @Description: TODO
 * @DateTime: 2023/10/23 16:41
 **/
@RequestMapping("/message")
@RestController
public class MessageController {

    @Autowired
    private MessageService messageService;

    @PostMapping("/addMessage")
    public R<String>addMessage(@RequestBody Message message){
        return messageService.addMessage(message);
    }

//    @GetMapping("/test")


}
